package top.chengdongqing.mishop.common.security

import org.springframework.security.authentication.AuthenticationManager
import org.springframework.security.authentication.AuthenticationProvider
import org.springframework.security.core.Authentication
import org.springframework.stereotype.Component

@Component
class JwtAuthenticationManager(
    private val authenticationProvider: AuthenticationProvider
) : AuthenticationManager {

    override fun authenticate(authentication: Authentication): Authentication {
        return authenticationProvider.authenticate(authentication)
    }
}